<!--
 * @Description: 
 * @Author: zzj
 * @Date: 2021-10-20 10:22:54
 * @LastEditors: zzj
 * @LastEditTime: 2021-10-20 14:16:16
-->
<template>
    <div class="home">
    <div>
      <a href="" @click.prevent="logoutHandler">退出</a>
    </div>
    <div style="float: left; width: 180px">
      <div>
        <router-link to="/home/article"> 文章</router-link>
      </div>
      <div>
        <router-link to="/home/category"> 栏目</router-link>
      </div>
    </div>
    <div style="margin-left: 200px; padding: 0.5em">
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  methods: {
    logoutHandler() {
      localStorage.removeItem("token");
      this.$router.push("/login");
    },
  },
  setup() {},
};
</script>

